package com.dys.testclass;

/**
 * @className: com.dys.testclass.Person
 * @description: 人类
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/14 下午5:39
 */
public class Person {
    // 名词-->属性-->成员变量
    String name;
    int age;
    char sex;
    double height;
    double weight;

    // 动词-->方法
    public void eat() {
        System.out.println("吃饭");
    }

    public void sleep(String address) {
        System.out.println("我在" + address + "睡觉");
    }

    public String introduce() {
        return "我的名字是: " + name + ",性别: " + sex + ",今年: " + age + "岁了" + ",我的身高是: " + height + ",我的体重是: " + weight;
    }
}
